package com.example.mybatisplusdemo.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxp
 * @since 2025-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "Userid",type = IdType.AUTO)
    private Integer userid;

    @TableField("Username")
    private String username;

    @TableField("Userpsd")
    private String userpsd;

    @TableField("Useraccount")
    private String useraccount;

    @TableField("Age")
    private Integer age;

    @TableField("Sex")
    private Integer sex;

    @TableField("Phone")
    private String phone;

    @TableField("role_id")
    private Integer roleId;

    @TableField("isValid")
    private String isvalid;

    @TableField("room_id")
    private String roomId;

//    @TableField("Adress")
//    private String address;



        @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
        @TableLogic
    private Boolean deleted;



}
